//package com.nbjtjc.safe.config;
//
//import org.springframework.boot.autoconfigure.AutoConfigureAfter;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import tk.mybatis.spring.mapper.MapperScannerConfigurer;
//
//import java.util.Properties;
//
///**
// * @author 小泽玛丽罗
// */
//@Configuration
////@AutoConfigureAfter({UserDataSourceConfig.class,WxDataSourceConfig.class})
//@AutoConfigureAfter({SafeDatabaseConfig.class})
//public class SafeMapperConfig {
//    @Bean("SafeMapperScannerConfigurer")
//    public MapperScannerConfigurer mapperScannerConfigurerOa(){
//        MapperScannerConfigurer mapperScannerConfigurer=new MapperScannerConfigurer();
//        mapperScannerConfigurer.setSqlSessionFactoryBeanName("safeSqlSessionFactory");
//        mapperScannerConfigurer.setSqlSessionTemplateBeanName("safeSqlSessionTemplate");
//        mapperScannerConfigurer.setBasePackage("com.nbjtjc.safe.mapper");
//        mapperScannerConfigurer.setMarkerInterface(com.nbjtjc.util.MyMapper.class);
////        mapperScannerConfigurer.setMarkerInterface(tk.mybatis.mapper.common.Mapper.class);
//        Properties properties = new Properties();
//        // 这里要特别注意，不要把MyMapper放到 basePackage 中，也就是不能同其他Mapper一样被扫描到。
//        properties.setProperty("mappers", "tk.mybatis.mapper.common.Mapper");
//        properties.setProperty("notEmpty", "false");
//        properties.setProperty("IDENTITY", "MYSQL");
//        mapperScannerConfigurer.setProperties(properties);
//        return mapperScannerConfigurer;
//    }
//}
